<?php
/*
Copy this file into your current active theme's directory to customize this template

This template highlights the first album
*/

if (count($albums) > 0):
$album = array_shift($albums);
$highlight = $flickr->getPhotoSizes($album['primary']);
$photos = $flickr->getPhotos($album['id']);
?>
<div id="highlight">

<h2><a href="album/<?php echo $album['id']?>/<?php echo $album['pagename']?>"><?php echo $album['title']?></a></h2>
<?php echo TanTanFlickrDisplay::photo($photos[$album['primary']], array('size' => 'Small', 'scale' => 0.5, 'album' => $album, 'context' => 'gallery-index'));?>
<p><?php echo html_entity_decode($album['description'])?></p>
<p class="meta">
    <?php echo $album['photos']?> Photos | 
    <a href="album/<?php echo $album['id']?>/<?php echo $album['pagename']?>" onclick="return openSlideShow('<?php echo $album['id']?>')">View as slideshow &gt;</a>
</p>

<div id="photos" class="photos">
	<?php foreach ($photos as $photo)
		echo TanTanFlickrDisplay::photo($photo, array('size' => 'Square', 'scale' => 0.5, 'album' => $album, 'context' => 'gallery-index'));
	?>
</div>


</div>
<?php endif; ?>
